//
//  STDiscoverViewController.swift
//  STVVeibo
//
//  Created by leergou on 16/7/19.
//  Copyright © 2016年 WhiteHouse. All rights reserved.
//

import UIKit

class STDiscoverViewController: STVisitorViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if !isLogin {
            
            visitorView?.setupVisitorView("登录后，最新、最热微博尽在掌握，不再会与实事潮流擦肩而过", imgName: "visitordiscover_image_message")
            return
        }
        
        setupUI()
        
    }
    
        //MAKR:setupUI
        func setupUI(){
            navigationItem.titleView = STDiscoverView()
            tableView.delegate = self
    }
}


    
extension STDiscoverViewController:UITableViewDelegate{

    func scrollViewDidScroll(scrollView: UIScrollView) {
//            view.endEditing(true)
        navigationItem.titleView?.endEditing(true)
        
    }
    
}